Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21537 - Shortname Refunds - PATCH / GET methods & Notification #1758

Merged
merged 18 commits into from
Sep 27, 2024

Conversation

seeker25
Copy link
Collaborator

Issue #:
bcgov/entity#21537

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

@ochiu
Copy link
Collaborator

ochiu commented Sep 20, 2024

Looks good so far! Thanks!

@seeker25 seeker25 changed the title 21537 - Shortname Refunds 21537 - Shortname Refunds - PUT and GET methods Sep 21, 2024
@seeker25
Copy link
Collaborator Author

Need the notification too haha

@seeker25 seeker25 changed the title 21537 - Shortname Refunds - PUT and GET methods 21537 - Shortname Refunds - PATCH and GET methods Sep 23, 2024
@@ -80,5 +80,6 @@ def get_eft_credits(cls, short_name_id: int) -> List[Self]:
return (cls.query
.filter(EFTCredit.remaining_amount > 0)
.filter(EFTCredit.short_name_id == short_name_id)
.with_for_update()
Copy link
Collaborator Author

@seeker25 seeker25 Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seeker25 seeker25 changed the title 21537 - Shortname Refunds - PATCH and GET methods 21537 - Shortname Refunds - PATCH / GET methods & Notification Sep 23, 2024
…abase instead, rename REJECTED - >DECLINED so it matches business verbage, build serializable base class to assist with ATTRS serialization
"""Retrieve emails with the specified keycloak role."""
users = get_users_with_keycloak_role(role)
# Purpose of this is so our TEST users don't get hammered with emails, also our tester can easily switch this on.
if override_emails := flags.is_on('override-eft-refund-emails', default=False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@ochiu
Copy link
Collaborator

ochiu commented Sep 25, 2024

Looks good, just the one comment about the history.

I have also merged a PR with a fix to the tests, sorry that was my bad.

@seeker25 seeker25 merged commit ac82a1c into bcgov:main Sep 27, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants